import request from '@/utils/request'

export const loginAPI = (data) => request({
  url: '/sys/login',
  method: 'POST',
  data
})

export const getUserInfoAPI = () => request({
  url: '/sys/profile',
  method: 'POST'
})

export const getUserDetarlByIdAPI = (id) => request({
  url: `/sys/user/${id}`
})
